﻿<%@ Page Title="MinuKohvik :: Esileht" Language="C#" MasterPageFile="~/Site.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Tere tulemast kohvikute lehele!
    </h2>
    <fieldset>
        <legend>Otsi kohvikut</legend>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:TextBox ID="tb_KohvikuNimetus" runat="server" CssClass="textEntry" />&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btn_Otsi" runat="server" Text="Otsi" onclick="btn_Otsi_Click" CssClass="btn" />
                <asp:Label ID="lblCheck" runat="server" Text="" />
                <br />
                <asp:AutoCompleteExtender ID="tb_KohvikuNimetus_AutoCompleteExtender" runat="server"
                    DelimiterCharacters="" Enabled="True" ServiceMethod="GetCompletionList" ServicePath=""
                    TargetControlID="tb_KohvikuNimetus" UseContextKey="True" CompletionInterval="200"
                    MinimumPrefixLength="1">
                </asp:AutoCompleteExtender>
                <br />
                <asp:RequiredFieldValidator ID="rfv_tbOtsi" runat="server" ErrorMessage="Sisesta kohviku nimetus."
                    ControlToValidate="tb_KohvikuNimetus" ForeColor="Red" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </fieldset>
    <p>
        <asp:PlaceHolder ID="ph_kohvikud" runat="server" />
    </p>
    <p>
        <asp:PlaceHolder ID="ph_test" runat="server" />
    </p>
</asp:Content>
